package com.stooges.adjustment.util;

/**
 * 公共工具包
 * 
 * @author 张超
 *
 */
public class CommonUtil {
	public static String generate(Integer num) {
		String a = "0123456789abcdefghijklmnopqrstuvwxyz";
		char[] rands = new char[num];
		StringBuffer sb = new StringBuffer();
		for (int i = 0; i < rands.length; i++) {
			int rand = (int) (Math.random() * a.length());
			sb.append(a.charAt(rand));
		}
		return sb.toString();
	}
}
